function ls(dir){
	var files = [];
	for(e=new Enumerator(new ActiveXObject("Scripting.FileSystemObject").GetFolder(dir).Files);!e.atEnd();e.moveNext())
		files.push(e.item());
	return files;
	}

function SetAlpha(h, a){
	a *= 1;
	Interop.Call("user32", "SetWindowLongW", h, -20, 327956|(a<255?0x80000:0));
	Interop.Call("user32", "SetLayeredWindowAttributes", h, 0, a, 0x2);
	}

function SetNowPlaying(enabled, format, title, artist, album){
	var song = Interop.Allocate(512), copyDataStruct = Interop.Allocate(12), hMSGR = 0;
	song.WriteString(0, "\\0Music\\0" + enabled + "\\0" + format + "\\0" + title + "\\0" + artist + "\\0" + album);
	copyDataStruct.WriteDWORD(0, 0x547);
	copyDataStruct.WriteDWORD(4, 512);
	copyDataStruct.WriteDWORD(8, song.DataPtr);
	while((hMSGR = Interop.Call("user32", "FindWindowExW", 0, hMSGR, "MsnMsgrUIManager", 0)) != 0)
		Interop.Call("user32", "SendMessageW", hMSGR, 0x4A, 0, copyDataStruct);
	}